"use strict";
cc._RF.push(module, '9ef6cmgWSlGm7hLTCPNJ8t0', 'StartScore');
// Script/StartScore.js

"use strict";

var _NumberView = require("./NumberView");

var _NumberView2 = _interopRequireDefault(_NumberView);

var _PlatformUtil = require("./PlatformUtil");

var _PlatformUtil2 = _interopRequireDefault(_PlatformUtil);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

cc.Class({
    extends: cc.Component,

    properties: {
        numberCompontent: _NumberView2.default,
        chargeBtn: cc.Node,
        shopBtn: cc.Node,
        shopScrollView: cc.Node,
        backBtn: cc.Button
    },

    onLoad: function onLoad() {

        // var that= this
        // httpUtils.NhttpPost("/users/stars",{},function(res){

        //  var stars =parseInt(res["stars"])

        //  that.numberCompontent.setText(stars)

        // },function(failres){

        //  console.log('刷新金币错误',failres)

        // })
    },


    gotoShopClick: function gotoShopClick() {

        console.log("进入商城");

        var changebig2 = cc.scaleTo(0.2, 1.1);

        var finish = cc.callFunc(function () {

            var changesmail2 = cc.scaleTo(0.1, 1.0);
            this.shopBtn.runAction(changesmail2);
        }, this);

        var seq = cc.sequence(changebig2, finish);

        this.shopBtn.runAction(seq);

        this.shopScrollView.active = true;
    },

    rechargeClick: function rechargeClick() {

        var changebig2 = cc.scaleTo(0.2, 1.1);

        var finish = cc.callFunc(function () {

            var changesmail2 = cc.scaleTo(0.1, 1.0);
            this.chargeBtn.runAction(changesmail2);
        }, this);

        var seq = cc.sequence(changebig2, finish);

        this.chargeBtn.runAction(seq);

        console.log("去充值");

        _PlatformUtil2.default.platform.exchangeStar();
    },

    backmainClick: function backmainClick() {
        _PlatformUtil2.default.platform.exit();
    },

    start: function start() {}
});
// import httpUtils from "./XmlHttpTool";

cc._RF.pop();